package com.qiusuo0226.self.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.qiusuo0226.mysql.pojo.CommonEntity;
import com.qiusuo0226.self.constant.Tables;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 账单类型表  数据源对象
 * @author qiusuo
 * @date 2023/8/5 23:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = Tables.SELF_BILL_CATEGORY)
@Table(name = Tables.SELF_BILL_CATEGORY, comment = "个人模块：账单类型表")
@TableCharset(MySqlCharsetConstant.UTF8MB4)
@TableEngine(MySqlEngineConstant.InnoDB)
public class BillCategoryDO extends CommonEntity implements Serializable {

    private static final long serialVersionUID = -8502917337295044724L;

    @TableField(value = "creater")
    @Column(name = "creater", type = MySqlTypeConstant.BIGINT, comment = "账单记录创建者唯一标识", isNull=false)
    private Long creater;

    @TableField(value = "bill_type")
    @Column(name = "bill_type", type = MySqlTypeConstant.VARCHAR, length = 2, comment = "记账类型,0:支出;1:收入", defaultValue = "0", isNull=false)
    private String billType;

    @TableField(value = "bill_category")
    @Column(name = "bill_category", type = MySqlTypeConstant.VARCHAR, length = 100, comment = "账单类别", defaultValue = "", isNull=false)
    private String billCategory;
}
